package a.e.a;

import a.c.e;
import a.d.u;
import a.j.a.j;
import a.j.a.o;
import a.j.g;
import a.j.ld;
import a.j.qd;

import java.io.IOException;
import java.util.Map;

public class bb
  extends ab
{
  protected ib p;
  protected e q;
  protected v r;
  public static int s;
  
  public bb(g paramg, Map paramMap, v paramv, ib paramib)
  {
    super(paramg, paramMap);
    this.p = paramib;
    this.r = paramv;
  }
  
  public void a()
  {
    super.a();
    this.q = null;
  }
  
  public void a(String paramString)
  {
    boolean bool = r.f;
    if (!bool) {
      if ((this.a == 0) && ("graph".equals(paramString)))
      {
        j localj = j.a(this.h);
        if (bool) {
          return;
        }
        if (localj != null)
        {
          this.q = localj.b(this.h);
          g localg = (g)localj.o(this.q);
          r localr = (r)this.p.a(localg, this.r);
          this.r.k.put(this.c.get("id"), localr);
          a(paramString, localr);
        }
      }
    }
    super.a(paramString);
  }
  
  public void b()
  {
    boolean bool = r.f;
    int i = r.e;
    String str = (String)this.c.get("graphUrl");
    Object localObject2;
    if (str != null)
    {
      if (bool) {
        break label150;
      }
      if (this.q == null)
      {
        if (bool) {
          break label142;
        }
        localObject1 = j.a(this.h);
        if (localObject1 != null)
        {
          this.q = this.h.i();
          ((j)localObject1).f(this.q);
          localObject2 = (g)((j)localObject1).o(this.q);
          try
          {
            a.e.f localf = new a.e.f();
            localf.b((g)localObject2, str);
          }
          catch (IOException localIOException)
          {
            System.err.println("Could not load inner graph " + localIOException);
            this.q = null;
          }
        }
      }
    }
    label142:
    if (!bool) {
      if (this.q != null)
      {
        label150:
        localObject1 = j.a(this.h);
        if (!bool)
        {
          if (this.i != null)
          {
            f();
            a(this.q, this.i);
            a(this.h.w(this.q));
            if (bool) {
              break label265;
            }
            if (i == 0) {}
          }
          else
          {
            this.i = this.h.w(this.q);
          }
        }
        else {
          f();
        }
        this.k.put(this.c.get("id"), this.q);
        if (bool) {
          break label497;
        }
        if (i == 0) {
          break label485;
        }
      }
    }
    label265:
    if (!bool) {
      if (this.c.containsKey("isGroup"))
      {
        if (!bool)
        {
          if (!"1".equals(this.c.get("isGroup"))) {
            if (bool) {
              break label482;
            }
          }
        }
        else {
          if (!c("isGroup")) {
            break label481;
          }
        }
        localObject1 = j.a(this.h);
        if (!bool)
        {
          if (localObject1 != null)
          {
            localObject2 = ((j)localObject1).f(this.h);
            this.q = ((j)localObject1).c((e)localObject2);
            if (!bool)
            {
              if (this.i != null)
              {
                f();
                a(this.q, this.i);
                a(this.h.w(this.q));
                if (bool) {
                  break label464;
                }
                if (i == 0) {}
              }
              else
              {
                this.i = this.h.w(this.q);
              }
            }
            else {
              f();
            }
            this.k.put(this.c.get("id"), this.q);
            if (bool) {
              break label497;
            }
            label464:
            if (i == 0) {
              break label485;
            }
          }
          super.b();
        }
        if (bool) {
          break label497;
        }
        if (i == 0) {
          break label485;
        }
      }
    }
    label481:
    label482:
    super.b();
    label485:
    Object localObject1 = this.c.get("gid");
    label497:
    if ((bool) || (localObject1 != null))
    {
      localObject2 = (a.c.bb)this.r.l.get(localObject1);
      if (!bool) {
        if (localObject2 == null)
        {
          localObject2 = new a.c.bb();
          this.r.l.put(localObject1, localObject2);
        }
      }
      ((a.c.bb)localObject2).add(c());
    }
  }
  
  void a(ld paramld)
  {
    boolean bool2 = r.f;
    Object localObject;
    if (!bool2) {
      if ((paramld instanceof qd))
      {
        localObject = (qd)paramld;
        paramld = ((qd)localObject).i();
      }
    }
    if (!bool2) {
      if ((paramld instanceof a.j.a.f))
      {
        localObject = (a.j.a.f)paramld;
        u localu = new u(this.j.e("topBorderInset"), this.j.e("bottomBorderInset"), this.j.e("leftBorderInset"), this.j.e("rightBorderInset"));
        ((a.j.a.f)localObject).c(localu);
      }
    }
    if ((bool2) || ((paramld instanceof o)))
    {
      localObject = (o)paramld;
      boolean bool1 = this.j.c("considerLabels");
      if (bool1) {
        ((o)localObject).h(bool1);
      }
    }
  }
  
  void a(e parame, ld paramld)
  {
    boolean bool = r.f;
    int j = r.e;
    if (!bool) {
      if ((this.h.w(parame) instanceof qd))
      {
        qd localqd = (qd)this.h.w(parame);
        ld localld1 = localqd.i();
        int i = 0;
        do
        {
          if (i >= localqd.h()) {
            break;
          }
          ld localld2 = localqd.f(i);
          localqd.a(i, localld2.a(paramld));
          if (!bool)
          {
            if (localld2 == localld1) {
              localqd.d(localqd.f(i));
            }
            i++;
          }
        } while (j == 0);
      }
    }
    this.h.a(parame, this.h.w(parame).a(paramld));
  }
  
  public Object c()
  {
    if (!r.f) {
      if (this.q != null) {
        return this.q;
      }
    }
    return super.c();
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.a.bb

 * JD-Core Version:    0.7.0.1

 */